<%@page import="Eclass.EclassForm"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>View Exam Preparation</title>
<link rel="stylesheet" type="text/css" href="css/FinalProjectCSS.css"/>
<script type="text/javascript" src="js/MasterJS.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
	<center>
		<table width="100%" class="bodyTable boxShadow">
		
			<!-- Header -->
			<tr>
				<td colspan="2"><%@include file="/include/Header.jsp"%></td>
			</tr>
		
			<!-- Content -->
			<tr>
				<td rowspan="2" width="200px" class="navigationBox"><%@include file="/include/Navigation.jsp"%></td>
				<td align="left" class="headerBox blueBackground">ACE Management > 
					<a href="javascript:flyToPage('listExamPrep');">ACE-Examination</a> > 
					View Exam Preparation
				</td>
			</tr>
			<tr>
				<td align="center"  class="contentStyle"><br>
					
					<!-- Insert Code Here -->
					<html:form action="/Eclass" method="post">
						<html:hidden property="task" name="eclassForm" />					
					
						<table width="60%" border="0" class="boxShadow">
							<tr>
								<td colspan="3" align="center" class="headerBox formHeaderBackground">View Exam Preparation</td>
							</tr>
							<logic:notEmpty name="eclassForm" property="modelExamPrep">
									<tr class="formListBackground">
										<td class="formListStyle leftAlign" width="20%">Exam ID</td>
										<td class="formListStyle" width="10px">:</td>
										<td class="formListStyle leftAlign"><bean:write name="eclassForm" property="modelExamPrep.examPrepId"/></td>
									</tr>
									<tr class="formListBackground">
										<td class="formListStyle leftAlign">Exam For</td>
										<td class="formListStyle">:</td>
										<td class="formListStyle leftAlign"><bean:write name="eclassForm" property="modelExamPrep.examFor"></bean:write></td>
									</tr>
									
									<logic:equal value="Trainee" property="modelExamPrep.examFor" name="eclassForm">
										<tr class="formListBackground">
											<td class="formListStyle leftAlign">Batch Class</td>
											<td class="formListStyle">:</td>
											<td class="formListStyle leftAlign">
												<bean:write name="eclassForm" property="modelExamPrep.batchName"></bean:write> - 
												<bean:write name="eclassForm" property="modelExamPrep.className"></bean:write>									
											</td>
										</tr>
										<tr class="formListBackground">
											<td class="formListStyle leftAlign">Start Hour</td>
											<td class="formListStyle">:</td>
											<td class="formListStyle leftAlign"><bean:write name="eclassForm" property="modelExamPrep.startHour"></bean:write></td>
										</tr>				
										<tr class="formListBackground">
											<td class="formListStyle leftAlign">End Hour</td>
											<td class="formListStyle">:</td>
											<td class="formListStyle leftAlign"><bean:write name="eclassForm" property="modelExamPrep.endHour"></bean:write></td>
										</tr>
									</logic:equal>
									
									<logic:equal value="Candidate" property="modelExamPrep.examFor" name="eclassForm">
										<tr class="formListBackground">
											<td class="formListStyle leftAlign">Total Question</td>
											<td class="formListStyle">:</td>
											<td class="formListStyle leftAlign">
												<bean:write property="modelExamPrep.numOfQuestCandidate" name="eclassForm"></bean:write>
												/ <bean:write property="modelExamPrep.totNumOfQuestCandidate" name="eclassForm"></bean:write>
											</td>
										</tr>	
										<tr class="formListBackground">
											<td class="formListStyle leftAlign">Start Date</td>
											<td class="formListStyle">:</td>
											<td class="formListStyle leftAlign"><bean:write name="eclassForm" property="modelExamPrep.startHour"></bean:write></td>
										</tr>	
										<tr class="formListBackground">
											<td class="formListStyle leftAlign">Duration</td>
											<td class="formListStyle">:</td>
											<td class="formListStyle leftAlign"><bean:write name="eclassForm" property="modelExamPrep.duration"></bean:write></td>
										</tr>											
									</logic:equal>
									
									<tr class="formListBackground">
										<td class="formListStyle leftAlign">Status</td>
										<td class="formListStyle">:</td>
										<td class="formListStyle leftAlign">
											<logic:equal value="0" name="eclassForm" property="modelExamPrep.status">Inactive</logic:equal>
											<logic:equal value="1" name="eclassForm" property="modelExamPrep.status">Active</logic:equal>
										</td>
									</tr>
							</logic:notEmpty>	
							<tr class="formListBackground">
								<td class="formListStyle" colspan="3">&nbsp;</td>
							</tr>
							<logic:notEmpty name="eclassForm" property="listExamPrepDetail">
								<tr>
									<td colspan="3" align="center" class="headerBox formHeaderBackground">Exam Detail</td>
								</tr>	
								<tr>
									<td colspan="3" align="center" class="headerBox greyBackground">
										<table width="80%">
											<tr>
												<td width="55%">Subject Name</td>
												<td>Number of Question</td>
											</tr>
										</table>
									</td>
								</tr>
								<logic:iterate id="listDetail" name="eclassForm" property="listExamPrepDetail">
									<tr class="formListBackground" align="center">
										<td colspan="3">
											<table width="80%">
												<tr>
													<td class="formListStyle" width="55%">
														<bean:write property="className" name="listDetail"/>
													</td>
													<td class="formListStyle" align="center">
														<bean:write property="noOfQuestion" name="listDetail"/>
														/ <bean:write property="totalNoOfQuestion" name="listDetail"/>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</logic:iterate>
								<tr class="formListBackground">
									<td class="formListStyle" colspan="3">&nbsp;</td>
								</tr>
							</logic:notEmpty>				
							<tr class="formListBackground">
								<td colspan="3" align="center" class="formListStyle">
									<table title="back" style="cursor: pointer;" onclick="javascript:flyToPage('listExamPrep');">
										<tr>
											<td><img src="images/backButton.png"/></td>
											<td><b>&nbsp;Back&nbsp;</b></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</html:form>
					<br>
				</td>
			</tr>
			
			<!-- Footer -->
			<tr>
				<td align="center" colspan="2" class="headerBox blueBackground">&copy; OME. 2013. All Rights Reserved.</td>
			</tr>
		</table>
	</center>
</body>
</html>